package com.liu.design.behavior.state;

/**
 * @author LIU
 * @version 1.0
 * @description: 状态模式
 * @date 2022/12/19 21:14
 */
public class _Test {
    public static void main(String[] args) {
        TeamGNR teamGNR = new TeamGNR();
        teamGNR.setGameStrategy(new VocationStrategy());

        teamGNR.startGame();

        teamGNR.nextState();
        teamGNR.startGame();

        teamGNR.nextState();
        teamGNR.startGame();

    }
}
